const express = require('express');
const router = express.Router();
const customerServiceController = require('../controllers/customerServiceController');

// 后台管理接口 - 获取所有客服消息
router.get('/messages', customerServiceController.getAllMessages.bind(customerServiceController));

// 后台管理接口 - 客服回复消息
router.post('/reply', customerServiceController.replyMessage.bind(customerServiceController));

// 后台管理接口 - 标记消息为已读
router.post('/mark-read', customerServiceController.markAsRead.bind(customerServiceController));

module.exports = router;

